package net.maku.system.facade;

import net.maku.system.api.facade.SysOrgFacade;
import net.maku.system.service.SysOrgService;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class SysOrgFacadeImpl implements SysOrgFacade {

    private final SysOrgService sysOrgService;

    public SysOrgFacadeImpl(SysOrgService sysOrgService) {
        this.sysOrgService = sysOrgService;
    }

    @Override
    public List<Long> getSubOrgIdList(Long orgId) {
        return sysOrgService.getSubOrgIdList(orgId);
    }
}
